WooCommerce\Square\Handlers\Product D

Total Complexity 194
Dependencies 17
Dependents 13
Total lines 1,480
Lines of code 705
Logical lines of code 370
Comment lines 444
Methods 45
Properties 0

Methods 45

Method Rating Maintainability Complexity Lines of code
update_from_square()
B
36 20 75
update_image_from_square()
A
40 15 56
get_square_meta()
A
42 12 50
update_stock_from_square()
A
51 10 24
convert_to_catalog_object()
A
47 9 35
extract_catalog_item_variation_data()
A
48 7 32
update_square_meta()
S
55 7 21
set_synced_with_square()
S
55 7 18
extract_catalog_item_data()
S
49 6 31
has_multiple_variation_attributes()
S
58 6 15
has_sku()
S
60 6 12
update_price_money()
S
61 5 12
is_synced_with_square()
S
61 5 11
get_products_synced_status()
S
51 4 25
get_inventory_change_adjustment_type()
S
52 4 24
get_square_item_id()
S
62 5 10
get_square_item_variation_id()
S
62 5 10
import_remote_meta()
S
59 3 15
clear_square_meta()
S
54 2 21
get_square_version()
S
67 3 7
get_catalog_item_thumbnail_id()
S
66 3 8
set_square_image_id()
S
67 3 7
get_square_image_id()
S
64 3 10
get_inventory_change_physical_count_type()
S
57 2 15
set_square_variation_version()
S
67 3 7
get_square_variation_version()
S
67 3 7
set_square_version()
S
67 3 7
update_product()
S
64 3 9
set_square_item_variation_id()
S
67 3 7
can_sync_with_square()
S
67 3 7
update_variation()
S
65 3 8
get_product_by_square_id()
S
68 3 7
set_square_item_id()
S
67 3 7
get_square_meta_single()
S
63 2 11
get_product_id_by_square_variation_id()
S
61 1 15
is_mapped()
S
73 2 4
get_product_by_square_variation_id()
S
69 2 7
get_product_id_by_square_id()
S
61 1 15
init_taxonomies()
S
61 1 14
get_parent_product_id_by_variation_id()
S
63 1 14
get_products_synced_with_square()
S
79 1 3
get_products_not_synced_with_square()
S
79 1 3
get_product_edit_link()
S
77 1 3
price_to_money()
S
79 1 3
unset_synced_with_square()
S
78 1 3